package team.dmh.wx.exception;

import lombok.Getter;

/**
 * @Auther: Hz1kai
 * @Date: 2018/9/23 16:40
 * @Description:
 */
@Getter
public enum ExceptionEnum {
    UNKNOWN(0,"未知错误"),
    LOGIN_ERROR(1, "帐号或密码错误"),
    NULL_POINTER(2,"参数不能为空"),
    USER_IS_EXIST(3, "用户名已存在"),
    USER_NOT_EXIST(4, "用户不存在"),
    NOT_YOURSELF(5, "不能添加自己为好友"),
    ALREADY_FRIEND(6, "用户已经是好友");



    ExceptionEnum(Integer status, String message) {
        this.status = status;
        this.message = message;
    }

    private Integer status;
    private String message;
}
